﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <div class="easyui-layout animated fadeInRight" data-options="fit:true">
        <div data-options="region:'center',border:false">
            <table id="dg-Tenants"></table>
        </div>
    </div>inline
		    <script type="text/javascript">
        $(function() {
            $('#dg-Tenants').inlineGrid({
                url: '/api/Tenant/GetTenants',
                saveUrl: 'tenant/SaveTenants',
                columns: [jQuery.merge([
                    { field: 'ck', checkbox: true }
					, { field: 'Id', hidden: true }
					, { field: 'Name', title: '名称', width: 200, editor: { type: 'textbox', options: { required: true } }, sortable: true }
					, { field: 'IsActive', title: '有效', width: 200, sortable: true }
					, { field: 'TenancyName', title: '租户名称', width: 200, editor: { type: 'textbox', options: { required: true } }, sortable: true }
					, { field: 'ConnectionString', title: '数据库连接字符串', width: 200, editor: { type: 'textbox' }, sortable: true }
                ], globalColumns)],
                columnFilters: globalColumnsFilter
            });
        });
    </script>
	</body>
</html>